/*** Eclipse Class Decompiler plugin, copyright (c) 2012 Chao Chen (cnfree2000@hotmail.com) ***/
package com.qihoo.psdk.remote;

import java.nio.ByteBuffer;
import java.nio.ByteOrder;

public class d {
    public static short a(byte[] paramArrayOfByte, int paramInt) {
        ByteBuffer localByteBuffer = ByteBuffer.allocate(2);
        localByteBuffer.order(ByteOrder.BIG_ENDIAN);
        localByteBuffer.put(paramArrayOfByte[paramInt]);
        localByteBuffer.put(paramArrayOfByte[(paramInt + 1)]);
        return localByteBuffer.getShort(0);
    }

    public static int b(byte[] paramArrayOfByte, int paramInt) {
        ByteBuffer localByteBuffer = ByteBuffer.allocate(4);
        localByteBuffer.order(ByteOrder.BIG_ENDIAN);
        localByteBuffer.put(paramArrayOfByte[paramInt]);
        localByteBuffer.put(paramArrayOfByte[(paramInt + 1)]);
        localByteBuffer.put(paramArrayOfByte[(paramInt + 2)]);
        localByteBuffer.put(paramArrayOfByte[(paramInt + 3)]);
        return localByteBuffer.getInt(0);
    }

    public static byte[] a(short paramShort) {
        ByteBuffer localByteBuffer = ByteBuffer.allocate(2);
        localByteBuffer.order(ByteOrder.BIG_ENDIAN);
        localByteBuffer.putShort(paramShort);
        localByteBuffer.flip();
        return localByteBuffer.array();
    }
}